namespace Collaboris.Saf.Actions.Wss.Tests.Generated
{
    using Engine.Report;

    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using Saf.Tests;
    using Entities;
    using File;

    /// <summary>
    /// This test was originally generated but has now been tested and verfiied by MJ
    /// </summary>
    [TestClass]
    public class GetFilesTest
    {
        [TestMethod]
        public void GetFiles_Test()
        {
            WSSTestAssistant<GetFiles, ListFileInfo> getfiles =
                    new WSSTestAssistant<GetFiles, ListFileInfo>(TestEnvironment.PublishingSite, 
                        "GetFilesTestWeb", "BLANKINTERNET#0");

            using (getfiles)
            {
                MacroReport doReport = getfiles.DoMacro();

                Assert.IsTrue(getfiles.FirstEntity.FileNames[0] == "default.aspx");
                Assert.IsTrue(getfiles.FirstEntity.FileUrls[0] == "Pages/default.aspx");

                MacroReport unDoReport = getfiles.UndoMacro();

                Assert.IsTrue(getfiles.FirstEntity.FileNames[0] == "default.aspx");
                Assert.IsTrue(getfiles.FirstEntity.FileUrls[0] == "Pages/default.aspx");
            }
        }

    }
}
